<?php
	require_once dirname(BASEPATH) . '/application/models/local/data/_init_model.php';
	
	class mod_package_config extends _init_model
	{
		public $PAK_C_ID;
		public $CAF_INFO_CHAR;
		public $CAF_IMG_COUNT;
		public $CAF_PDT_COUNT;
		public $CAF_COVER_COUNT;
		public $CAF_LOGO_COUNT;
		
		function mod_package_config(){
			parent::__construct();
				
			$this->tableName = "PACKAGE_CONFIG";
		}
		
		function get_package_config($package_id){
			$this->db->select('*');
			$this->db->where('PAK_ID', $package_id);
			$query = $this->db->get($this->tableName);
			
			if ($query->num_rows() > 0)
				return $query->row_array(0);
			else
				return null;
		}
	}
?>